<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org"
	xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m-t" id="signupForm">
		<div class="form-group" hidden="true">
			<label class="col-sm-2 control-label">通知记录ID：</label>
			<div class="form-control-static" id="noticeRecordId" th:text="${NoticeRecordDTO.noticeRecordId}" >
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">通知类型：</label>
				<div class="form-control-static" th:class="${NoticeRecordDTO.noticeType == '1' ? 'badge badge-warning' : 'badge badge-success'}" th:text="${NoticeRecordDTO.noticeType == '1' ? '通知' : '公告'}">
				</div>

		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">通知标题：</label>
			<div class="form-control-static" th:text="${NoticeRecordDTO.noticeTitle}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">通知内容：</label>
			<div class="form-control-static" th:text="${NoticeRecordDTO.noticeContent}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">备注：</label>
			<div class="form-control-static" th:text="${NoticeRecordDTO.remark}">
			</div>
		</div>
		<div class="form-group">
			<div class="form-control-static col-sm-offset-9">
				<button type="button" onclick="iRead()" class="btn btn-primary">阅读</button>
				<button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
			</div>
		</div>
	</form>
    </div>
	<div th:include="include :: footer"></div>
<script>
    function iRead(){
        debugger
        var id = $("#noticeRecordId").text();
        $.modal.confirm("确定阅读该条信息吗？", function() {
            var data = { "noticeRecordId": id };
            var url = ctx+"system/noticeRecord/read";
            $.operate.save(url, data);
        });
    }
</script>
</body>
</html>